package nz.ac.massey.se.Q7B;

/**
 * Q7B
 *
 * @author Charles Zheng
 * @id 19029962
 */

public class Foo {

    public Foo() {
    }

    //this is lazy initializing
    public void m1(Bar bar) {
        if (bar == null) {
            bar = new Bar();
        } else {
            bar.toString();
        }

    }
}
